package RPPM.dao;

import RPPM.domain.Course;
import RPPM.domain.Teacher;

import java.util.List;
import java.util.Map;


/**
 *  Teacher findTeacherById(Teacher toBechecked):展示个人信息
 *  List<String> findCourseByTeacher(Teacher tobechecked):展示教授课程
 */
public interface TeaDao {


    boolean teaChangePwdById(RPPM.domain.Teacher tobechecked, String newPwd);

    boolean CourseInhance(int Cou_id, String Cou_name, String Cou_time, String Cou_location, RPPM.domain.Teacher teacher);

    boolean CourseUpdate(String newtime, String newlocal, Course course, Teacher teacher);

    Teacher findTeacherById(Teacher toBechecked);

    List<Map<String, Object>> findCourseByTeaid(Teacher teacher);

    List<Map<String, Object>> findCoursesByname(int tea_id, String searchText);
}
